#!/usr/bin/env bash

# changde to the direcory of th script
#cd "$(dirname "$(readlink -f "$0")")"
#pwd
#cd -
python <<EOF
import  os
print(os.path.realpath("$0"))
EOF

depoly=false
uglify=false

while (( $# > 1 ));
do
	case $1 in
		--deploy) deploy="$2";;
		--uglify) uglify="$2";;
		*) break;
	esac; shift 2
done

$deploy && echo "will deploy.. deploy = $deploy"
$uglify && echo "will uglify... uglify = $uglify"

# how to run
# chmod +x script.sh
# ./script.sh --deploy true --uglify false
